package com.brush.app.service;

import com.brush.app.domain.AppQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import com.brush.app.domain.req.question.QuestionAddReq;
import com.brush.app.domain.req.question.QuestionEditReq;
import com.brush.app.domain.req.question.QuestionReq;
import com.brush.app.domain.resp.question.QuestionDetailResp;
import com.brush.app.domain.resp.question.QuestionResp;
import com.github.pagehelper.PageInfo;

/**
* @author Administrator
* @description 针对表【app_question(试题表)】的数据库操作Service
* @createDate 2024-10-31 16:44:54
*/
public interface AppQuestionService extends IService<AppQuestion> {

    /**
     * 分页查询
     * @param req
     * @return
     */
    PageInfo<QuestionResp> pagination(QuestionReq req);


    /**
     * 新增试题
     * @param req
     * @return
     */
    boolean add(QuestionAddReq req);

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    QuestionDetailResp findById(Long id);

    /**
     * 修改题目
     * @param req
     * @return
     */
    boolean edit(QuestionEditReq req);
}
